package com.bjpowernode.service.impl;

import com.bjpowernode.domain.Student;
import com.bjpowernode.mapper.StudentMapper;
import com.bjpowernode.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private StudentMapper studentMapper;
    @Override
    public Integer queryUserCount() {
        return studentMapper.queryUserCount();
    }

    @Override
    public Integer updaUser(Student student) {
        int i = studentMapper.updateByPrimaryKeySelective(student);
        return i;
    }
}
